﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pata.SylkSharp.Core.Utils
{
    public static class EnumerableExtender
    {
        public static IEnumerable<T> Concat<T>(this IEnumerable<IEnumerable<T>> enumOfEnumOfT)
        {
            foreach (IEnumerable<T> anEnumOfT in enumOfEnumOfT)
                foreach(T aT in anEnumOfT)
                    yield return aT;
        }
    }
}
